<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>工作门户首页</title>
		<script src="../../js/header.js"></script>
		<link rel="stylesheet" type="text/css" href="../../css/main_work.css">
		<style>
			.el-scrollbar__wrap{
			  overflow-x: hidden;
			}
			.el-scrollbar__thumb {
			    position: relative;
			    display: block;
			    width: 0;
			    height: 0;
			    cursor: pointer;
			    border-radius: inherit;
			    background-color: #FFF;
			    -webkit-transition: .3s background-color;
			    transition: .3s background-color;
			}
		</style>
	</head>
	<body>
		<div v-cloak id="app">
		    <el-container
				class="height100percent"
				v-loading="loading"
				element-loading-text="拼命加载中"
				element-loading-spinner="el-icon-loading">
		    	<!-- 顶栏容器 -->
		        <el-header class="el-header" style="height: auto;">
		        	<el-row type="flex" justify="center">
						<el-col :span="11">
							<div class="grid-content bg-purple">
								<el-row style="text-align: left;">
									<el-col :span="4">
		        						<img src="../../images/logo_white.png" style="margin-top: 20px;width: 88px;height: 88px;">
		        					</el-col>
		        					<el-col :span="20">
		        						<span class="el-header-title" style="">中国地震局“互联网+监管”系统</span>
									</el-col>
								</el-row>
							</div>
						</el-col>
  						<el-col :span="4" >
  							<div class="grid-content bg-purple-light">
  								<el-row style="text-align: right;">		
		        					<el-col :span="24">
		        						<div v-if="name != ''">
		        							<img src="../../images/login_image.png" style="vertical-align: sub;width: 21px;height: 21px;">
											<div style="display:inline-block; line-height: 129px;font-family: PingFangSC-Medium;font-size: 16px;color: #FFFFFF;">
												<span style="color:#fff;margin-right: 10px;">欢迎{{name}}</span>
												<el-button type="text" @click="changePwd"
														   style="font-family: PingFangSC-Medium;font-size: 16px;color: #fff;">
													修改密码
												</el-button>
												<el-button type="text" @click="logOut" style="font-family: PingFangSC-Medium;font-size: 16px;color: #fff;">退出</el-button>
											</div>
										</div>
		        						<div v-else>
			        						<img src="../../images/login_image.png" style="vertical-align: sub;width: 21px;height: 21px;">
			  								<div style="display:inline-block; line-height: 129px;font-family: PingFangSC-Medium;font-size: 16px;color: #FFFFFF;">
				  								<span class="headMenu" prop="userType" :label="用户类型"  @click="login">登录</span>
				  								<span style="color: #FFFFFF;opacity: 0.5;">/</span>
				  								<span class="headMenu" prop="userType" :label="用户类型"  @click="register">注册</span>
			  								</div>
		  								</div>
	  								</el-col>
  								</el-row>
  							</div>
  						</el-col>
					</el-row>
					<el-row type="flex" justify="center" style="background: #1D60A6;">
						<el-col :span="15">
							<ul class="ul-left ul-tab">
								<el-scrollbar style="height:61px;">
									<li style="background: #185392;width: 10%;">
										<span class="tab_title" @click="backIndex()">首页</span>
									</li>
									<template v-for="(item, index) in sysApp">
										<!--<li style="width: 20%">-->
										<li :title="item.appName" style="width: 10%">
											<a :href="item.appAddress" target="_blank">
												<span class="tab_title">{{item.appName}}</span>
											</a>
										</li>
									</template>
								</el-scrollbar>
							</ul>
						</el-col>
					</el-row>
		        </el-header>
		        <!-- 主要区域容器 -->
		        <el-main>
					<iframe frameborder="0" width="100%" id="frame-index" :src="iframesrc" style="min-height: 400px;" @load="loadSetIframeHeight"></iframe>
				</el-main>
				<!-- 底栏容器 -->
				<el-footer style="height: auto;margin-top: 25px;">
					<el-row type="flex" justify="center">
	  					<el-col>
	  						<div class="grid-content bg-purple">
	  							<el-row type="flex" justify="center" class="bottom_link" style="background-image: linear-gradient(-78deg, #1765A7 0%, #1665A7 99%);">
									<el-col :span="15">
										<div style="text-align: left;">
											<!--<span class="other_link_title" style="width: 12.5%;">友情链接：</span>
											<a href="#" class="other_link" style="width: 13%;"><span>中国科普博览</span></a>
											<a href="#" class="other_link" style="width: 13%;"><span>中国科技云</span></a>
											<a href="#" class="other_link" style="width: 26%;"><span>中科院仪器设备共享管理平台</span></a>
											<a href="#" class="other_link" style="width: 18%;"><span>首都科技条件平台</span></a>
											<a href="#" class="other_link"><span>中国科学院</span></a>
											<a href="#" class="other_link_last"><span>科搜网</span></a>-->
										</div>
									</el-col>
	  							</el-row>
	  							<el-row type="flex" justify="center" style="padding: 25px 0;background-color: #E4EBEF;">
	  								<el-col :span="15">
										<!--<div class="divleft" style="margin-top: 5px;">
					        				<img src="../../images/finderror.png" style="width: 129px;height: 57px;">
										</div>-->
										<div class="divleft" style="margin-left: 35%;">
					        				<img src="../../images/logo.png" style="width: 67px;height: 67px;">
										</div>
										<div class="divleft" style="width: 44%; margin-top: 20px;margin-left: 4%;text-align: left;padding-right: 3px;">
											<!--<div style="line-height: 1em;">
												<span class="website_footer">                           </span>
											</div>
											<div style="margin: 5px 0;line-height: 1em;">
												<span class="website_footer">京公安网备11010802017084号</span>
											</div>-->
											<div style="line-height: 1em;">
												<span class="website_footer">Copyright@2019  中国地震局 版权所有</span>
											</div>
										</div>
										<!--<div class="divleft" style="width: 1px;height: 70px;border-left: 1px solid #9B9B9B;opacity: 0.56;"></div>-->
										<!--<div class="divleft" style="float: right;text-align: left;">
											<div style="line-height: 1em;">
												<span class="website_footer">地址：北京海淀区学院南路55号</span>
											</div>
											<div style="margin: 5px 0;line-height: 1em;">
												<span class="website_footer">邮箱：074200</span>
											</div>
											<div style="line-height: 1em;">
												<span class="website_footer">主办单位：中国地震局</span>
											</div>
										</div>-->
									</el-col>
	  							</el-row>
	  						</div>
	  					</el-col>
	  				</el-row>
				</el-footer>
				<!-- 监管行为-->
				<el-dialog title="" :visible.sync="checkdialog" center="true" width="45%">
					<el-row :gutter="10" class="notice-content">
						<el-col  :span="6"  v-for="(item,index) in checktype"  style="text-align: center;">
							<div class="div-icon"@click="changechecktype(item.url )" @mouseenter="xingwei_changeImg(item,index)" @mouseleave="xingwei_recovery(item,index)">
								<div class="icon-img" :style="{'background': 'url(' + item.bg + ') center no-repeat'}" >
									<div class="noctice-num">{{ item.num }}</div>
								</div>
							</div>
							<div style="margin-top: 18px;">
								<span class="message" >{{ item.message }}</span>
							</div>
						</el-col>
					</el-row>
				</el-dialog>
				<!-- 执法监管-->
				<el-dialog title="" :visible.sync="dialogzfjg" center="true" width="45%">
					<el-row  class="notice-content" :align="middle" :gutter="20">
						<el-col  :span="6"  v-for="(item,index) in noticetype" style="text-align: center;" >
							<a :href="item.url"  target="_blank"  @click="closedialog()">
								<div class="div-icon"  @mouseenter="zfjg_changeImg(item,index)" @mouseleave="zfjg_recovery(item,index)" >
									<div class="icon-img" :style="{'background': 'url(' + item.bg + ') center no-repeat'}" >
										<div class="noctice-num">{{ item.num }}</div>
									</div>
								</div>
							</a>
							<div style="margin-top: 18px;"  style="margin-left: 30px">
								<span class="message" >{{ item.message }}</span>
							</div>
						</el-col>
					</el-row>
				</el-dialog>
				<!-- 待办 -->
				<el-dialog title="选择系统" :visible.sync="dialogDbView" center width="45%">
					<div  style="rgba(0,0,0,0.5)">
						<el-row :gutter="20" class="notice-content">
							<el-col :span="6" v-for="(item,index) in sysApps" align="middle">
								<div v-show="item.url!=''"  @click="turnDB(item,index)" >
									<div class="div-icon"  @mouseenter="dbybxt_changeImg(item,index)" @mouseleave="dbybxt_recovery(item,index)" center="true">
										<div class="icon-img" :style="{'background': 'url(' + item.bg + ') center no-repeat'}" >
											<div class="noctice-num">{{ item.num }}</div>
										</div>
									</div>
									<div style="margin-top: 18px;">
										<span class="message">{{ item.message }}</span>
									</div>
								</div>
							</el-col>
						</el-row>
					</div>
				</el-dialog>
				<!-- 已办 -->
				<el-dialog title="选择系统" :visible.sync="dialogYbView" center width="45%">
					<div style="rgba(0,0,0,0.5)">
						<el-row :gutter="20" class="notice-content">
							<el-col :span="6" v-for="(item,index) in sysApps" align="middle">
								<div v-show="item.url!=''" @click="turnYB(item,index)">
									<div class="div-icon"  @mouseenter="dbybxt_changeImg(item,index)" @mouseleave="dbybxt_recovery(item,index)" center="true">
										<div class="icon-img" :style="{'background': 'url(' + item.bg + ') center no-repeat'}" >
											<div class="noctice-num">{{ item.num }}</div>
										</div>
									</div>
									<div style="margin-top: 18px;">
										<span class="message">{{ item.message }}</span>
									</div>
								</div>
							</el-col>
						</el-row>
					</div>
				</el-dialog>
				<el-dialog title=""	:visible.sync="dialogTableVisible" center="true" width="45%">
					<div>
						<el-row>
							<el-col style="height: 30px;text-align: center;font-size: 20px;font-weight: bold;">{{ city.cityName }}</el-col>
						</el-row>
						<el-row>
							<el-col style="height: 30px;text-align: center;font-size: 16px;font-weight: bold;">累计数与占全国比例</el-col>						
						</el-row>
						<el-row :gutter="50" type="flex" justify="center" style="margin-top: 30px;">
							<el-col :span="8" style="text-align: center;">
								<div style="padding: 10px 0;font-size: 16px;font-weight: bold;">监管对象（项）</div>
								<div style="padding: 10px 0;font-size: 16px;font-weight: bold;">{{ city.cityObject }}</div>
								<div style="font-size: 16px;font-weight: bold;">{{(city.cityObject/city.unittotalNum* 100)| numFilter }}%</div>
								
							</el-col>
							<el-col :span="8" style="text-align: center;">
								<div style="padding: 10px 0;font-size: 16px;font-weight: bold;">监管行为（次）</div>
								<div style="padding: 10px 0;font-size: 16px;font-weight: bold;">{{ city.cityAction }}</div>
								<div style="font-size: 16px;font-weight: bold;">{{(city.cityAction/city.acttotalNum* 100)| numFilter }}%</div>
								
							</el-col>
							<el-col :span="8" style="text-align: center;">
								<div style="padding: 10px 0;font-size: 16px;font-weight: bold;">宣传教育（次）</div>
								<div style="padding: 10px 0;font-size: 16px;font-weight: bold;">{{ city.cityEducation }}</div>
								<div style="font-size: 16px;font-weight: bold;">{{(city.cityEducation/city.eduNum* 100)| numFilter }}%</div>
								
							</el-col>
						</el-row>
					</div>
				</el-dialog>

				<!-- 修改密码-->
				<el-dialog :visible.sync="changePwdView" :show-close="false" center="true" width="40%">
					<el-form :model="changeForm" :rules="rules" ref="changeForm" label-width="140px" class="form_date_width">
						<el-row>
							<el-col :span="4" class="tab-title">
								修改密码
							</el-col>
						</el-row>
						<el-row>
							<el-col :span="20">
								<el-form-item label="用户名:" prop="name"  label-width="150px">
									<el-input v-model="name" placeholder="" :disabled="true" ></el-input>
								</el-form-item>
							</el-col>
						</el-row>
						<el-row>
							<el-col :span="20">
								<el-form-item label="原密码:" prop="oldPassword" :rules="rules.oldPassword"  label-width="150px">
									<el-input v-model="changeForm.oldPassword" placeholder="" disabled></el-input>
								</el-form-item>
							</el-col>
						</el-row>
						<el-row>
							<el-col :span="20">
								<el-form-item label="新密码:" prop="password" :rules="rules.password"  label-width="150px">
									<el-input v-model="changeForm.password" placeholder="" :disabled="false" show-password ></el-input>
								</el-form-item>
							</el-col>
						</el-row>
						<el-row>
							<el-col :span="20">
								<el-form-item label="确认密码:" prop="quePassword" :rules="rules.quePassword" label-width="150px">
									<el-input v-model="changeForm.quePassword" placeholder="" :disabled="false" show-password ></el-input>
								</el-form-item>
							</el-col>
						</el-row>
						<el-row>
							<el-col :span="20">
								<div style="float:right;">
									<el-button type="primary" size="small" style="background: #409EFF;"  @click="onReplace()">确定</el-button>
									<el-button type="info" size="small" style="background: #909399;" @click="qxDialog()">取消</el-button>
								</div>
							</el-col>
						</el-row>
					</el-form>
				</el-dialog>
		    </el-container>
		</div>
	</body>
	<script type="text/javascript">
		var mainwork = new Vue({
	        el: '#app',
	        created: function () {
                this.changeForm.oldPassword = JSON.parse(localStorage.getItem('pwd'));
				var userInfo = JSON.parse(localStorage.getItem('userInfo'));
                if (userInfo != null) {
                    this.name = userInfo.loginName;
                    this.userId = userInfo.userId;
                }
	        },
	        updated: function(){
	        	
	        },
	        data: function () {
                var validatePass2 = (rule, value, callback) => {
                    if (value === '') {
                        callback(new Error('请再次输入确认密码'))
                    } else if (value !== this.changeForm.password) {
                        callback(new Error('两次输入密码不一致!'))
                    } else {
                        callback()
                    }
                }
                var validatePass3 = (rule, value, callback) => {
                    if (value === '') {
                        callback(new Error('请输入新密码'))
                    } else if (value == this.changeForm.oldPassword) {
                        callback(new Error('新密码与原密码一致!'))
                    } else {
                        callback()
                    }
                }
	            return {
                    imagesbox:[
                        {id:0,idView: "../../images/forest.png"},
                        {id:1,idView: "../../images/sunrise.jpg"},
                        {id:2,idView: "../../images/sunshine.png"}
                    ],
                    changeForm:{
                        loginName: "",
                        password: "",
                        quePassword:"",
                        oldPassword:""
                    },
					name:"",
                	iframesrc : appBaseUrl + '/html/mainwork/sy.html',
                    iframeheight1: '',// iframe原始高度
                    iframeheight2: '',// iframe改变后高度
                    loading: false,
                    sysApp: '',
                    checkdialog: false,
                    checktype:[
                        {
                            bg: appBaseUrl + '/images/admin-icon-on.png',
                            message: '行政检查行为',
                            num: '0',
                            url:'./jgsjc/check.html',
                        },
                        {
                            bg: appBaseUrl + '/images/punish-icon-on.png',
                            message: '行政处罚行为',
                            num: '0',
                            url:'./jgsjc/punish.html'
                        },
                        {
                            bg: appBaseUrl + '/images/force-icon-on.png',
                            message: '行政强制行为',
                            num: '0',
                            url:'./jgsjc/force.html'
                        },
                        {
                            bg: appBaseUrl + '/images/other-icon-on.png',
                            message: '其他行为',
                            num: '0',
                            url:'./jgsjc/jgxwother.html'
                        }
                    ],
                    dialogzfjg:false,
                    noticetype:[
                        {
                            url: '',
                            bg: appBaseUrl + '/images/renlingchaoshi-icon-on.png',
                            message: '认领超时提醒',
                            num: '0'
                        },
                        {
                            url: '',
                            bg: appBaseUrl + '/images/renlingchaoxian-icon-on.png',
                            message: '未认领超限提醒',
                            num: '0'
                        }
                    ],
                    dialogDbView:false,
                    sysApps:[],
                    city:[],
                    dialogYbView:false,
                    dialogTableVisible:false,
                    changePwdView: false,
                    loginName: "",
                    password: "",
                    userId:"",
                    oldPassword:"",
                    rules: {
                        password: [
                            { required: true, trigger: 'blur' ,validator: validatePass3},
                            { pattern: /^(?![a-zA-Z]+$)(?![A-Z0-9]+$)(?![A-Z\W_]+$)(?![a-z0-9]+$)(?![a-z\W_]+$)(?![0-9\W_]+$)[a-zA-Z0-9\W_]{6,30}$/,
                                message: '密码为数字,小写字母,大写字母,特殊符号至少包含三种,长度为6 - 30位' }
                        ],
                        quePassword: [
                            { required: true, validator: validatePass2, trigger: 'blur' }
                        ],
                        oldPassword: [
                            { required: true,
                                message: "原密码必填",
                                trigger: "blur" }
                        ]

                    },
					bili:''
                }
            },
            filters: {
	            numFilter(value) {
	                // 截取当前数据到小数点后两位
	                let realVal = parseFloat(value).toFixed(2)
	                return realVal;
	            }
	        },
            mounted: function () {
            this.getApp();
            var allcookies=document.cookie;
            var userName="userName";
            document.getElementById('frame-index').height = 923;
               /* var cookie_pos=allcookies.indexOf(userName);
                if(cookie_pos != -1){
                    cookie_pos += userName.length+1;
                    var cookie_end=allcookies.indexOf(";",cookie_pos);
                    if (cookie_end == -1){
                        cookie_end=allcookies.length;
                    }
                    var value=unescape(allcookies.substring(cookie_pos,cookie_end));
                    this.name=value;
                    console.log(this.name);

                }*/
                this.loadingTime();
            },
	        methods: {
                logOut(){
                    axios({
						method: 'post',
						url: appBaseUrl + '/login/logout',
					})
					.then(response => {
					    let data = response.data;
					    if(data.code == 200){
					        localStorage.clear();
					        location.href = location.origin + appBaseUrl + '/html/login.html';
						}else{
					        this.$message.error(data.msg);
						}
					})
					.catch(function(error){
					    console.log(error);
					})
                },
                //打开修改密码dialog
                changePwd(){
                    this.changePwdView = true;
                },
                //关闭修改密码dialog
                qxDialog(){
                    this.changeForm.password = '';
                    this.changeForm.loginName = '';
                    this.changeForm.quePassword ='';
                    this.changePwdView = false;
                },
				//确定跳转后台接口
                onReplace(){
                    this.$refs.changeForm.validate(valid => {
                        if(valid){
                            var encrypt = new JSEncrypt();
                            encrypt.setPublicKey(publicKey);
                            let result = encrypt.encrypt(this.changeForm.password);
                            let oldresult = encrypt.encrypt(this.changeForm.oldPassword);
                            axios({
                                method: 'post',
                                url: '/dzjportal/changePwd/update',
                                params: {
                                    oldPassword:oldresult,
                                    password:result,
                                    userId: this.userId

                                }
                            })
                                .then(response => {
                                let data = response.data;
                            if (data.code == 200) {
                                localStorage.clear();
                                this.logOut();
                            } else {
                                this.$message.error(data.msg);
                                this.qxDialog();
                            }
                        })
                        .catch(function (error) {
                                console.log(error);
                                this.qxDialog();
                            })
                        }
                    });
                },
				login(){
	        	  location.href="../login.html"
				},
				register(){
	        	  location.href="../register.html"
				},
                // 初始设置iframe的高度
                loadSetIframeHeight() {
                    var iframe = document.getElementById('frame-index');
                    if (iframe) {
                        iframe.height = iframe.contentWindow.document.documentElement.scrollHeight;
                        this.iframeheight1 = iframe.contentWindow.document.documentElement.scrollHeight;
                    }
                },
                // 设置iframe的高度
                setIframeHeight(height) {
                    var iframe = document.getElementById('frame-index');
                    if (iframe) {
                        iframe.height = height;
                    }
                },
                // 恢复原高度
                recoveryIframeHeight(){
                    var iframe = document.getElementById('frame-index');
                    if (iframe) {
                        iframe.height = this.iframeheight1;
                    }
                },
                loadingTime(){
                    this.loading = true;
                    var $this = this;
                    setTimeout(function(){
                        $this.loading = false;
                    },1500)
                },
                closedialog(){
                    this.dialogzfjg=false;
				},
                // 页面跳转
                changePage(url){
                    this.loadingTime();
                    this.iframesrc = url;
                },

                changechecktype(url){
                    this.iframesrc = url;
					this.checkdialog=false;
                },
                //返回主页
                backIndex(){
                    this.firstpagesrc=appBaseUrl + '/html/mainwork/sy.html';
                    window.location.reload();
                },
                getApp(){
                    axios({
                        method: 'get',
                        url: appBaseUrl + '/sys/getsys',
                    }).then(response => {
                        let data = response.data.data;
						this.sysApp=data;
						for( var i=0;i<this.sysApp.length;i++){
							if(this.sysApp[i].appName ==="执法监管系统"){
								this.sysApp[i].appAddress  = this.sysApp[i].appAddress +'?u=0';
							}
							if(this.sysApp[i].appName ==="风险预警系统"){
								this.sysApp[i].appAddress  = this.sysApp[i].appAddress +'?u=0';
							}
						}
						console.log(this.sysApp);
                	})
                },
                /*getApp(){
                    axios({
                        url: appBaseUrl + '/sys/getsys',
                    }).then(response => {
                        method: 'get',
                        /!*let data = ;*!/
						this.sysApp=response.data.data;
						debugger;
						var userInfo = JSON.parse(localStorage.getItem('userInfo'));
						if (userInfo != null) {
                            for( var i=0;i<this.sysApp.length;i++){
                                if(this.sysApp[i].appName ==="执法监管系统"){
                                    this.sysApp[i].appAddress  = this.sysApp[i].appAddress +'?u=0&token='+ userInfo.userId;
                                }else if(this.sysApp[i].appName ==="风险预警系统"){
                                    this.sysApp[i].appAddress  = this.sysApp[i].appAddress +'?u=0&token='+ userInfo.userId;
                                }else if (this.sysApp[i].appName ==="执法人员管理"){
                                    this.sysApp[i].appAddress  = this.sysApp[i].appAddress +'?u=0&token='+ userInfo.userId;
								}else {
                                    this.sysApp[i].appAddress  = this.sysApp[i].appAddress +'?token='+ userInfo.userId;
								}
                            }
						}
						console.log(this.sysApp);
					})
                },*/
                openDialog(dialog,nums){
                    if(dialog=='checkdialog'){
                        this.checktype[0].num = nums[0];
                        this.checktype[1].num = nums[1];
                        this.checktype[2].num = nums[2];
                        this.checktype[3].num = nums[3];
                        this.checkdialog = true;
					}else if(dialog=='dialogzfjg'){
                        this.noticetype=nums;
                        this.dialogzfjg=true;
					}else if(dialog=='dialogDbView'){
                        this.sysApps=nums;
                        this.dialogDbView=true
					}else if(dialog=='dialogYbView'){
                        this.sysApps=nums;
                        this.dialogYbView=true
					}else if(dialog=='dialogTableVisible'){
                        this.dialogTableVisible=true;
                        this.city=nums;
                        this.bili =Math.floor((this.city.cityCounts / this.city.cityTotal * 100) *100) /100 ;
                    }
				},
                xingwei_changeImg(item,index){
                    if(index == 0){
                        item.bg = appBaseUrl + "/images/admin-icon.png";
                    }else if (index==1){
                        item.bg = appBaseUrl + "/images/punish-icon.png";
                    }else if (index==2){
                        item.bg = appBaseUrl + "/images/force-icon.png";
                    }else if (index==3){
                        item.bg = appBaseUrl + "/images/other-icon.png";
                    }
                },
                xingwei_recovery(item,index){
                    if(index == 0){
                        item.bg = appBaseUrl + "/images/admin-icon-on.png";
                    }else if (index==1){
                        item.bg = appBaseUrl + "/images/punish-icon-on.png";
                    }else if (index==2){
                        item.bg = appBaseUrl + "/images/force-icon-on.png";
                    }else if (index==3){
                        item.bg = appBaseUrl + "/images/other-icon-on.png";
                    }
                },
                zfjg_changeImg(item,index){
                    if(index == 0){
                        item.bg = appBaseUrl + "/images/renlingchaoshi-icon.png";
                    }else{
                        item.bg = appBaseUrl + "/images/renlingchaoxian-icon.png";
                    }
                },
                zfjg_recovery(item,index){
                    if(index == 0){
                        item.bg = appBaseUrl + "/images/renlingchaoshi-icon-on.png";
                    }else{
                        item.bg = appBaseUrl + "/images/renlingchaoxian-icon-on.png";
                    }
                },
                turnDB(item, index){
                    this.dialogDbView=false;
                    this.dialogYbView=false;
                    window.open(item.url+"?menuPermissionDB=db");
                },
                turnYB(item, index){
                    if (item.appName=="地震监测设施监管系统"){
                        this.$message.error("监测设施系统无已办");
                        this.dialogDbView=false;
                        this.dialogYbView=false;
                    }else {
                        this.dialogDbView=false;
                        this.dialogYbView=false;
                        window.open(item.url+"?menuPermissionYB=db");
                    }
                },
                dbybxt_recovery(item,index){
                    if(index == 0){
                        item.bg = appBaseUrl + "/images/安评系统02.png";
                    }else if (index == 1){
                        item.bg = appBaseUrl + "/images/监测设施系统02.png";
                    }else {
                        item.bg = appBaseUrl + "/images/宣传教育系统02.png";
                    }
                },
                dbybxt_changeImg(item,index){
                    if(index == 0){
                        item.bg = appBaseUrl + "/images/安评系统01.png";
                    }else if (index == 1){
                        item.bg = appBaseUrl + "/images/监测设施系统01.png";
                    }else {
                        item.bg = appBaseUrl + "/images/宣传教育系统01.png";
                    }
                },
	        },    
	    })
	</script>
	<body>
	</body>
</html>
